package ioexercise;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class FisDemo {
    public static void main(String[] args) throws IOException {
        //2. 单字节读
        FileInputStream fis=new FileInputStream("fos1.dat");
       int a= fis.read();
        System.out.println(a);
        a=fis.read();
        System.out.println(a);
        fis.close();
    }
}
